<!DOCTYPE html>
<html>
<head>
    <title>婚纱影楼</title>
    <link href="/themes/cpts_199_cxs/css/bootstrap.css" rel="stylesheet" type="text/css" media="all"/>
    <link href="/themes/cpts_199_cxs/css/style.css" rel="stylesheet" type="text/css" media="all"/>
    <link rel="stylesheet" type="text/css" href="/themes/cpts_199_cxs/css/component.css"/>
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>

    <script src="/themes/cpts_199_cxs/js/jquery.min.js"></script>
    <script src="/themes/cpts_199_cxs/js/simpleCart.min.js"></script>
    <!-- start menu -->
    <link href="/themes/cpts_199_cxs/css/megamenu.css" rel="stylesheet" type="text/css" media="all"/>
    <script type="text/javascript" src="/themes/cpts_199_cxs/js/megamenu.js"></script>
    <script>$(document).ready(function () {
        $(".megamenu").megamenu();
    });</script>
    <!-- start menu -->
</head>
<body>
<!--header-->
<div class="header2 text-center">
    <div class="container">
        <div class="main-header"></div>
        <!--header-->
    <#include "include/top.html"/>
    </div>
    <div class="clearfix"></div>
</div>
<!--header//-->
<div class="cart">
    <div class="container">
        <ol class="breadcrumb">
            <li><a href="/">Home</a></li>
            <li class="active">Cart</li>
        </ol>

        <div class="col-md-9 cart-items">
            <h2>我的订单</h2>
        <#assign total = 0/>
        <#list orderList as item>
            <#assign total = total+item.price/>
            <div class="cart-header">
                <div class="cart-sec">
                    <div class="cart-item cyc">
                        <img src="${item.goodsimg}"/>
                    </div>
                    <div class="cart-item-info">
                        <h3>${item.goodsname}</h3>
                        <h4><span>RMB. $ </span>${item.price!}</h4>
                        <span>数量：${item.count}</span>

                    </div>
                    <div class="clearfix"></div>
                    <div class="delivery">
                        <#if item.status == '未支付'>
                            <a href="/member/payOrder/${item.id}">支付</a>
                            <a href="/member/cancelOrder/${item.id}">取消</a>
                            <a href="/member/delOrder/${item.id}">删除</a>
                        </#if>
                        <span>${item.addtime?string('yyyy-MM-dd HH:mm:ss')}</span>
                        <div class="clearfix"></div>
                    </div>
                </div>
            </div>
        </#list>
        </div>

        <div class="col-md-3 cart-total">
            <a class="continue" href="/index">去购物</a>
            <div class="price-details">
                <h3>全部订单</h3>
                <span>Total</span>

                <span class="total">${total}</span>
                <div class="clearfix"></div>
            </div>

        </div>
    </div>
</div>
</body>
</html>